# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=treeify
_commit=90292b206d2eec0bd886c2850713149cb2393932
pkgver=r7958.90292b20
pkgrel=2
pkgdesc='Display a list of files as a tree'
arch=('any')
url='https://github.com/grawity/code/blob/master/misc/treeify'
license=('MIT')
depends=('perl')
makedepends=('git')
source=("$pkgname::git+https://github.com/grawity/code.git#commit=$_commit")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $pkgname

  install -Dm 755 misc/treeify "$pkgdir"/usr/bin/treeify
  install -Dm 644 dist/LICENSE.mit "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

